<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\Feedback */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'feedback'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="feedback-view">

    <p>
<!--        --><?//= Html::a(Yii::t('common', 'update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('common', 'delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('common', 'are_you_sure_you_want_to_delete_this_item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
//            'id',
            'type',
//            'user_id',
            'user_name',
            'mobile',
            'email:email',
            'content:ntext',
//            'field1',
//            'field2',
//            'field3',
//            'field4',
//            'status',
//            'version',
//            'created_by',
//            'created_at:time',
        [
                'label' => 'created_at', 'value' => \common\helpers\TStringHelper::ShowDate($model->created_at, 1),
        ],
//            'created_from',
            'created_ip',
//            'updated_by',
//            'updated_at',
//            'updated_from',
//            'updated_ip',
//            'is_deleted',
        ],
    ]) ?>

</div>
